﻿using Hotel.Application.Roles.Dto;
using Hotel.Domain.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Application.Menus.Dto
{
    public class MenuCreateUpdateDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long MenuId { get; set; }
        /// <summary>        
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>        
        /// 菜单类型
        /// </summary>
        public MenuType MenuType { get; set; }
        /// <summary>        
        /// 菜单路由
        /// </summary>
        public string MenuRoute { get; set; }
        /// <summary>        
        /// 父ID
        /// </summary>
        public long ParentId { get; set; }
        /// <summary>        
        ///菜单图标
        /// </summary>
        public string MenuIcon { get; set; }
    }

    public class MenuListDto : MenuCreateUpdateDto
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 末次修改时间
        /// </summary>
        public DateTime? LastModifyTime { get; set; }
        /// <summary>
        /// 末次修改人
        /// </summary>
        public string LastModifyName { get; set; }
    }
}
